/*
 * @Author: Klein
 * @Date: 2021-06-17 13:48:50
 * @Description: file content
 */

const Users = require("../model/user");

class UsersDao {
  static async findUser(name) {
    const result = await Users.findOne({
      where: { name },
    });
    return result;
  }

  static async createUser(data) {
    const result = await Users.create(data);
    return result;
  }
}

module.exports = UsersDao;
